summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-06-03 02:10:41 +0200
committerLiam <byteslice@airmail.cc>2024-02-11 19:41:13 +0100
commit368bf2211fdc58014e479db84dab5a152ebbe459 (patch)
tree9465c1050dee79d708448827f0f3103cdd3127b6
parenttexture_cache: avoid overestimation of ASTC texture sizes (diff)
downloadyuzu-368bf2211fdc58014e479db84dab5a152ebbe459.tar
yuzu-368bf2211fdc58014e479db84dab5a152ebbe459.tar.gz
yuzu-368bf2211fdc58014e479db84dab5a152ebbe459.tar.bz2
yuzu-368bf2211fdc58014e479db84dab5a152ebbe459.tar.lz
yuzu-368bf2211fdc58014e479db84dab5a152ebbe459.tar.xz
yuzu-368bf2211fdc58014e479db84dab5a152ebbe459.tar.zst
yuzu-368bf2211fdc58014e479db84dab5a152ebbe459.zip
-rw-r--r--src/video_core/texture_cache/texture_cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index 5986a7680..ca0794214 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -81,6 +81,7 @@ void TextureCache<P>::RunGarbageCollector() {
if (num_iterations == 0) {
return true;
}
+ --num_iterations;
auto& image = slot_images[image_id];
if (True(image.flags & ImageFlagBits::IsDecoding)) {
// This image is still being decoded, deleting it will invalidate the slot
@@ -95,7 +96,6 @@ void TextureCache<P>::RunGarbageCollector() {
if (!high_priority_mode && must_download) {
return false;
}
- --num_iterations;
if (must_download) {
auto map = runtime.DownloadStagingBuffer(image.unswizzled_size_bytes);
const auto copies = FullDownloadCopies(image.info);